package com.omuao.message.queue.service.poll.impl;

import com.bailb.message.manager.DelayQueueManager;
import com.bailb.message.service.poll.PollAutoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 自动出队列业务
 *
 * @author omuao
 */
@Service
public class PollAutoServiceImpl implements PollAutoService {

    public static Logger logger = LoggerFactory.getLogger(PollAutoServiceImpl.class);

    @Autowired
    DelayQueueManager delayQueueManager;

    @Override
    public void compact() {
        delayQueueManager.compactRange();
    }

    @Override
    public void clearTimeoutMessage() {
        delayQueueManager.clearTimeoutMessage();
    }

    @Override
    public void clearTemplateTimeoutMessage() {

    }
}
